#include "lcdsplitmanager.h"

LcdSplitManager::LcdSplitManager()
{
}

void LcdSplitManager::registerChildWindow(int no, QWidget *childWindow)
{
	m_NoToChildWindow.insert(no, childWindow);
}

bool LcdSplitManager::hasChildWindow(int no) const
{
	return m_NoToChildWindow.contains(no);
}

QWidget* LcdSplitManager::getChildWindow(int no) const
{
	if(hasChildWindow(no))
	{
		return m_NoToChildWindow.value(no);
	}
	else
		return NULL;
}

QList<int> LcdSplitManager::childNoList() const
{
	return m_NoToChildWindow.keys();
}

QList<QWidget*> LcdSplitManager::childWindowList() const
{
	return m_NoToChildWindow.values();
}
